Provide replacement function for strerror_l()#701
Provide replacement function for strerror_l()#701ffontaine wants to merge 1 commit intostoraged-project:masterfrom
Conversation
strerror_l() is not implemented in some C libraries, such as uClibc, so let's provide a simple replacement function that falls back on strerror(). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> [Retrieved from: https://git.buildroot.net/buildroot/tree/package/libblockdev/0001-Provide-replacement-function-for-strerror_l.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
Can one of the admins verify this patch? |
|
Interesting, thanks for the patch. However this is not a direct replacement since it handles locales differently - we use it to return non-localized string. Is there anything similar available in uClibc? Alternatively, this might be backported from other libc implementations. Out of curiosity, is there anything else missing for successful libblockdev compilation? |
|
To my knowledge, there is nothing similar in uclibc-ng. Finally, this patch was the only one needed to integrate libblockdev in buildroot in 2020. |
|
To me it looks like an issue that should be fixed on uclibc side. Further inspiration, not sure how do they handle uclibc though: https://lists.infradead.org/pipermail/libnl/2016-August/002193.html |
strerror_l()is not implemented in some C libraries, such as uClibc, so let's provide a simple replacement function that falls back onstrerror().Signed-off-by: Thomas Petazzoni thomas.petazzoni@bootlin.com
[Retrieved from: https://git.buildroot.net/buildroot/tree/package/libblockdev/0001-Provide-replacement-function-for-strerror_l.patch]
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com